<template>
  <div class="address">
    <van-nav-bar title="新建地址" left-arrow @click-left="$router.back()" />
    <van-address-edit
      :area-list="areaList"
      show-search-result
      :search-result="searchResult"
      :area-columns-placeholder="['请选择', '请选择', '请选择']"
      @save="onSave"
    />
  </div>
</template>

<script setup>
import { ref, reactive, toRefs } from "vue";
import { addressApi } from "@/http/api";
const searchResult = ref([]);

const onSave = async (e) => {
  console.log(e);
  const res = await addressApi(e);
};
</script>
<style lang="scss" scoped></style>